<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title color_clear=HOsY1l >基本设置</title>
    {template 'stourtravel/public/public_min_js'}
    {Common::getCss('style.css,base.css,base_new.css')}
    {Common::getScript('config.js')}

</head>
<body>

<table class="content-tab">
    <tr>
        <td width="119px" class="content-lt-td" valign="top">
            {template 'stourtravel/public/leftnav'}
            <!--右侧内容区-->
        </td>
        <td valign="top" class="content-rt-td">
            <form id="configfrm">
                <div class="w-set-con">
                    <div class="cfg-header-bar">
                        <a href="javascript:;" class="fr btn btn-primary radius mr-10 mt-6" onclick="window.location.reload()">刷新</a>
                    </div>
                    <div class="w-set-nr">
                        <ul class="info-item-block">
                            <li class="rowElem">
                                <span class="item-hd">扫码下单：</span>
                                <div class="item-bd">
                                    <label class="radio-label">
                                        <input type="radio" name="cfg_scan_code_{$type_id}_is_open" value="1" {if $config['cfg_scan_code_'.$type_id.'_is_open']==1}checked{/if}>开启
                                    </label>
                                    <label class="radio-label ml-20">
                                        <input type="radio" name="cfg_scan_code_{$type_id}_is_open" value="0" {if !$config['cfg_scan_code_'.$type_id.'_is_open']}checked{/if}>关闭
                                    </label>
                                    <label class="radio-label ml-10">
                                        开启后PC端预订时，仅支持扫码至移动端进行预订！如果关闭时门票预订时为<span class="c-red">多套餐或分时预约</span>时，PC端将默认弹出uniapp-h5版移动端二维码进行扫码支付，不支持PC端直接预订！
                                    </label>
                                </div>
                            </li>
                            <li class="rowElem">
                                <span class="item-hd">是否启用小程序码：</span>
                                <div class="item-bd">
                                    <label class="radio-label">
                                        <input type="radio" name="cfg_scan_code_{$type_id}_xcx" value="1" {if $config['cfg_scan_code_'.$type_id.'_xcx']==1}checked{/if}>开启
                                    </label>
                                    <label class="radio-label ml-20">
                                        <input type="radio" name="cfg_scan_code_{$type_id}_xcx" value="0" {if !$config['cfg_scan_code_'.$type_id.'_xcx']}checked{/if}>关闭
                                    </label>
                                    <label class="radio-label ml-10">
                                        关闭时将弹出uniapp-h5版移动端二维码，开启时弹出微信小程序二维码。二维码均跳转产品详情页！
                                    </label>
                                </div>
                            </li>
                        </ul>
                        <div class="clear clearfix pt-20">
                            <a class="btn btn-primary size-L radius ml-115" href="javascript:;" id="btn_save">保存</a>
                        </div>
                    </div>
                </div>
            </form>
        </td>
    </tr>
</table>

<script>
    $(document).ready(function () {
        //配置信息保存
        $("#btn_save").click(function () {
            Config.saveConfig(0);
        });
    });
</script>
</body>
</html>
